﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace QuaManSys.InnerInfo
{
    public static class Empower
    {
        public static bool AccessOrNot(Tab_Person user, string roleId)
        {            
            //using (QuaManSysEntities context = new QuaManSysEntities())
            //{
            //    var queryAccess = 
            //        from c in context.TabUserRole
            //        where user.employeeId == c.employeeID && roleId == c.roleID
            //        select c;
            //    if (queryAccess.Count() != 0)
            //    {
            //        return true;
            //    } 
            //    else
            //    {
            //        return false;
            //    }
            //} 
            return true;
        }
    }
}